package tilegame.sprites;

import graphics.Animation;
import java.lang.reflect.Constructor;

/**
The Player.
 */
public class Player extends Element {

    private static final float JUMP_SPEED = -.95f;
    private int strength = 1;

    public Player(Animation left, Animation right,
            Animation deadLeft, Animation deadRight) {
        super(left, right, deadLeft, deadRight);
        super.setLife(5);
    }

    public void collideHorizontal() {
        setVelocityX(0);
    }

    public void collideVertical() {
        setVelocityY(0);
    }

    public void setY(float y) {
        super.setY(y);
    }

    public void wakeUp() {
        // do nothing
    }

    public int getStrength() {
        return strength;
    }

    public void setStrength(int amount) {
        strength = amount;
    }

    public float getMaxSpeed() {
        return 0.35f;
    }

    public boolean isFlying() {
        return isAlive();
    }
}
